package com.asialjim.wechat.official.menu;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.io.Serializable;
import java.util.List;

/**
 * <h2><em>ASIAL JIM JAVA DOC</em></h2><hr/>
 * <h3>CLASS DESCRIPTION</h3>
 * <p> The News Info for WE CHAT Official Account <a href="https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html">OFFICIAL DOCUMENT</a>
 * <p> 微信图文信息 <a href="https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html">微信官方文档传送门</a>
 * <p> Copyright &copy; ztzh inc Ztzh Co., LTD<hr/>
 * @author Asial Jim &nbsp;&nbsp;<span>Email: zengyz0128@zsmarter.com &nbsp;&nbsp; asialjim@hotmail.com</span>
 * @since 2020/6/10 11:22 &nbsp; JDK 1.8
 * @version 1.0.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
public class WeChatMenuNewsInfo implements Serializable {
	private static final long serialVersionUID = -3495808090127737414L;
	
	/**
     * 图文元素
     */
    private List<Info> list;

    /**
     * 图文信息
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Info{
        private String title;
        private String author;
        private String digest;
        @JsonProperty("show_cover")
        private Integer showCover;
        @JsonProperty("cover_url")
        private String coverUrl;
        @JsonProperty("content_url")
        private String contentUrl;
        @JsonProperty("source_url")
        private String sourceUrl;
    }
}
